package cn.wolfcode.wechat.service.impl;

import cn.wolfcode.wechat.domain.Robotanswer;
import cn.wolfcode.wechat.mapper.RobotanswerMapper;
import cn.wolfcode.wechat.service.IRobotanswerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by 季节 on 2017/12/30
 */
@Service@Transactional
public class RobotanswerServiceImpl implements IRobotanswerService {

    @Autowired
    private RobotanswerMapper robotanswerMapper;

    @Override
    public int insert(Robotanswer record) {
        return robotanswerMapper.insert(record);
    }

    @Override
    public Robotanswer selectByPrimaryKey(String Usercontent) {
        return robotanswerMapper.selectByPrimaryKey(Usercontent);
    }

    @Override
    public List<Robotanswer> selectAll() {
        return robotanswerMapper.selectAll();
    }
}
